<include file="../Public/header" />
<script data-main="__PUBLIC__/admin/js/page/admin/global/editcredittype" src="__PUBLIC__/admin/js/lib/requirejs/require.js"></script>
</head>

<body>

  <div class="page">
    <div class="page-hd">
      <h1>{$Think.lang.creditConfig}</h1>
    </div>
    <div class="navbar">
      <ul class="nav">
        <li><a href="{:URL('admin/Global/credit')}">{$Think.lang.creditRule}</a>
        </li>
        <li class="active"><a href="#">{$Think.lang.creditType}</a>
        </li>
        <li><a href="{:URL('admin/Global/creditUser')}">{$Think.lang.creditUser}</a>
        </li>
      </ul>
    </div>

    <div class="form">
      <php>if($type=="edit") {</php>
      <form method="post" action="{:URL('admin/Global/doEditCreditType')}" enctype="multipart/form-data">
        <php>}else {</php>
        <form method="post" action="{:URL('admin/Global/doAddCreditType')}" enctype="multipart/form-data">
          <php>}</php>
          <!--           <div class="page-hd">
            <h3 class="section-ti">
              <eq name="type" value="edit">{$Think.lang.editor}
                <else />{$Think.lang.add}</eq>{$Think.lang.creditType}</h3>
          </div> -->
          <dl class="kv">
            <dt>{$Think.lang.Name}：</dt>
            <dd>
              <input class="input-text" name="name" id="name" type="text" value="{$creditType['name']}" maxlength="50">
              <input name="id" value="{$creditType['id']}" style="display:none;">
              <p class="tip">{$Think.lang.creditTypeNameRe}</p>
            </dd>
          </dl>
          <dl class="kv">
            <dt>{$Think.lang.alias}：</dt>
            <dd>
              <input class="input-text" name="alias" id="alias" type="text" value="{$creditType['alias']}" maxlength="50">
              <p class="tip">{$Think.lang.creditTypeAliasRe}</p>
            </dd>
          </dl>
          <div class="actions">
            <input type="submit" class="btn btn-y" value="{$Think.lang.OK}" />;
            <a href="{:URL('admin/Global/credit')}" class="btn btn-n">{$Think.lang.return}</a>
          </div>
        </form>
    </div>
  </div>
</body>

</html>
